#include "swpworkergraphicitem.h"

#include "graphicitemcommon.h"

using namespace core;
using namespace swp;

SwpWorkerGraphicItem::SwpWorkerGraphicItem(const QString& workerName,
    QGraphicsItem* parent) : SwpEntityGraphicItem(
        workerName.isEmpty() ? QObject::tr("worker") :
            workerName, QObject::tr("worker"), parent)
{

}

SwpWorkerGraphicItem::~SwpWorkerGraphicItem()
{

}

int SwpWorkerGraphicItem::type() const
{
    return SWP_WORKER_ITEM;
}

QString SwpWorkerGraphicItem::name() const
{
    return QObject::tr("Worker");
}

IEditorItem* SwpWorkerGraphicItem::copy() const
{
    return new SwpWorkerGraphicItem(m_entityName, 0);
}

